home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 1 / MacMania 1.toast / Educational / Education'More / D-G / Guided Reading.sea / Guided Reading / background_2705.xml < prev    next >
Extensible Markup Language  |  1992-02-08  |  34KB  |  576 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2705</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_6982.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_8522.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>5</left>
  23.             <top>20</top>
  24.             <right>506</right>
  25.             <bottom>314</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>15</textHeight>
  40.         <name>text</name>
  41.         <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for bkgnd field "text". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  mouseDown,doSingleClickStuff,EnterInfield,returnInfield,--         tabKeyFUNCTIONS:GLOBALS:   lookin,whatToFind,punctuations,authoringSize: 3059 chars.      9:36 PM, Tuesday, July 30, 1991‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû ¬© 1991 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûon mouseDownwait 20 ticks -- adjust this value for speed of double-clickif (the mouseClick) and (the clickLoc is within the rect of me) thenget the clicktextfindGloss itelse doSingleClickStuffend mouseDownon doSingleClickStuffglobal lookinif the visible of fld "notebook" then exit doSingleClickStuff--with command key down, they are checking gloss onlyif the commandKey is "Down" thenfindGloss the clicktextexit doSingleClickStuffelse  -- they want more info on a sentenceif the optionKey is not "down" thenanswer "Select the text that you want to study with the"¬¨&& "mouse cursor, and then, type the ‚ÄúEnter‚Äù key on the keyboard."¬¨with "Cancel" or "OK"if it is "cancel" then exit doSingleClickStuffend ifput "true" into lookinset locktext of me to falseend ifend doSingleClickStuffon EnterInfieldglobal lookin, whatToFind, punctuationsif lookin is "true" thenput "false" into lookinset locktext of fld "text" to truelock screenset lockmessages to true--make sure they selected something & by putting only the words--we automatically delete any leading or trailing spaces and returnsif the selection is not empty thenput word 1 to (the number of words of the selection)¬¨of the selection into whatToFindelse exit enterInField--check to see that the selection is part of only one sentenceif (whatToFind contains "."¬¨or whatTofind contains "?"¬¨or whatToFind contains "!")¬¨and last char of whatTofind is not in punctuations thenif whatToFind contains "."then put char 1 to offset(".",whatToFind) of whatToFind into whatToFindelse if WhatToFind contains "?"then put char 1 to offset("?",whatToFind) of whatToFind into whatToFindelse if whatToFind contains "!"then put char 1 to offset("!",whatToFind) of whatToFind into whatToFindend if--find the sentence cardpush cardgo to first card of bg "sentences"find string whatTofind in fld "sentence"unlock screen with visual zoom open--if the words exist in more than one sentence, we keep lookingrepeatanswer "Is this the sentence you want?" with "No" or "Yes"if it is "yes" thensend "opencard" to this cardexit repeatelselock screengo nextfind string whatToFind in fld "sentence"if the short name of this bg is not "sentences" thenanswer "Sorry, I can't locate that sentence. Try making your selection again."pop cdexit enterInFieldend ifunlock screenend ifend repeatset lockmessages to falseend ifend enterInFieldon returnInfieldglobal authoringif authoring then pass returnInFieldelse enterInfieldend returnInFieldon tabKey--allows limited formatting of the text when typingglobal authoringif authoring then put "        " into the selectionend tabKey</script>
  42.     </part>
  43.     <part>
  44.         <id>2</id>
  45.         <type>button</type>
  46.         <visible> <true /> </visible>
  47.         <reserved5> 0 </reserved5>
  48.         <reserved4> 0 </reserved4>
  49.         <reserved3> 0 </reserved3>
  50.         <reserved2> 0 </reserved2>
  51.         <reserved1> 0 </reserved1>
  52.         <enabled> <true /> </enabled>
  53.         <rect>
  54.             <left>5</left>
  55.             <top>314</top>
  56.             <right>34</right>
  57.             <bottom>341</bottom>
  58.         </rect>
  59.         <style>shadow</style>
  60.         <showName> <false /> </showName>
  61.         <highlight> <false /> </highlight>
  62.         <autoHighlight> <false /> </autoHighlight>
  63.         <sharedHighlight> <true /> </sharedHighlight>
  64.         <family>0</family>
  65.         <titleWidth>-83</titleWidth>
  66.         <icon>21700</icon>
  67.         <textAlign>center</textAlign>
  68.         <font>Chicago</font>
  69.         <textSize>12</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <name>Home</name>
  72.         <script>on mouseUpif the icon of me < 0 then exit mouseUpelse go homeend mouseUp</script>
  73.     </part>
  74.     <part>
  75.         <id>9</id>
  76.         <type>button</type>
  77.         <visible> <true /> </visible>
  78.         <reserved5> 0 </reserved5>
  79.         <reserved4> 0 </reserved4>
  80.         <reserved3> 0 </reserved3>
  81.         <reserved2> 0 </reserved2>
  82.         <reserved1> 0 </reserved1>
  83.         <enabled> <true /> </enabled>
  84.         <rect>
  85.             <left>33</left>
  86.             <top>314</top>
  87.             <right>62</right>
  88.             <bottom>341</bottom>
  89.         </rect>
  90.         <style>shadow</style>
  91.         <showName> <false /> </showName>
  92.         <highlight> <false /> </highlight>
  93.         <autoHighlight> <false /> </autoHighlight>
  94.         <sharedHighlight> <true /> </sharedHighlight>
  95.         <family>0</family>
  96.         <titleWidth>-83</titleWidth>
  97.         <icon>26635</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Chicago</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <name>help</name>
  103.         <script>on  mouseUpif the icon of me < 0 then exit mouseUpglobal bubbleHelpif not bubbleHelp thenanswer "Place the cursor over any object for help with that object. Click the help button again to turn off help."put "true" into bubblehelpset the hilite of me to trueelseput false into bubblehelpset the hilite of me to falseend ifend mouseUp</script>
  104.     </part>
  105.     <part>
  106.         <id>10</id>
  107.         <type>button</type>
  108.         <visible> <true /> </visible>
  109.         <reserved5> 0 </reserved5>
  110.         <reserved4> 0 </reserved4>
  111.         <reserved3> 0 </reserved3>
  112.         <reserved2> 0 </reserved2>
  113.         <reserved1> 0 </reserved1>
  114.         <enabled> <true /> </enabled>
  115.         <rect>
  116.             <left>61</left>
  117.             <top>314</top>
  118.             <right>92</right>
  119.             <bottom>341</bottom>
  120.         </rect>
  121.         <style>shadow</style>
  122.         <showName> <false /> </showName>
  123.         <highlight> <false /> </highlight>
  124.         <autoHighlight> <false /> </autoHighlight>
  125.         <sharedHighlight> <true /> </sharedHighlight>
  126.         <family>0</family>
  127.         <titleWidth>-83</titleWidth>
  128.         <icon>19678</icon>
  129.         <textAlign>center</textAlign>
  130.         <font>Chicago</font>
  131.         <textSize>12</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <name>TellAbout</name>
  134.         <script>on mouseUpif the icon of me < 0 then exit mouseUpelseglobal authoring--identifies which card we are input word 1 of fld "page" & word 2 of fld "page" into theCard--this is the stuff for authoring general information for the cardif the commandKey is "down" and authoring thenpush cdgo to card "sound" of bg "configure"else --the commandKey is not down or it is a student clickingget the script of this bgif ("on" && theCard) is not in it thenanswer "Sorry, no additional information for this card."else send theCard to this cardend ifend ifend mouseUp</script>
  135.     </part>
  136.     <part>
  137.         <id>14</id>
  138.         <type>button</type>
  139.         <visible> <true /> </visible>
  140.         <reserved5> 0 </reserved5>
  141.         <reserved4> 0 </reserved4>
  142.         <reserved3> 0 </reserved3>
  143.         <reserved2> 0 </reserved2>
  144.         <reserved1> 0 </reserved1>
  145.         <enabled> <true /> </enabled>
  146.         <rect>
  147.             <left>399</left>
  148.             <top>314</top>
  149.             <right>427</right>
  150.             <bottom>341</bottom>
  151.         </rect>
  152.         <style>shadow</style>
  153.         <showName> <false /> </showName>
  154.         <highlight> <false /> </highlight>
  155.         <autoHighlight> <true /> </autoHighlight>
  156.         <sharedHighlight> <true /> </sharedHighlight>
  157.         <family>0</family>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>30557</icon>
  160.         <textAlign>center</textAlign>
  161.         <font>Chicago</font>
  162.         <textSize>12</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <name>first</name>
  165.         <script>on mouseUpvisual scroll rightgo first card of this bgend mouseUp</script>
  166.     </part>
  167.     <part>
  168.         <id>12</id>
  169.         <type>button</type>
  170.         <visible> <true /> </visible>
  171.         <reserved5> 0 </reserved5>
  172.         <reserved4> 0 </reserved4>
  173.         <reserved3> 0 </reserved3>
  174.         <reserved2> 0 </reserved2>
  175.         <reserved1> 0 </reserved1>
  176.         <enabled> <true /> </enabled>
  177.         <rect>
  178.             <left>426</left>
  179.             <top>314</top>
  180.             <right>453</right>
  181.             <bottom>341</bottom>
  182.         </rect>
  183.         <style>shadow</style>
  184.         <showName> <false /> </showName>
  185.         <highlight> <false /> </highlight>
  186.         <autoHighlight> <true /> </autoHighlight>
  187.         <sharedHighlight> <true /> </sharedHighlight>
  188.         <family>0</family>
  189.         <titleWidth>0</titleWidth>
  190.         <icon>1014</icon>
  191.         <textAlign>center</textAlign>
  192.         <font>Chicago</font>
  193.         <textSize>12</textSize>
  194.         <textStyle>plain</textStyle>
  195.         <name>Prev</name>
  196.         <script>on mouseDownset the hilite of me to truemousestilldownend mouseDownon mouseStilldownvisual scroll rightgo prev cd of this bgend mouseStillDownon mouseUpset the hilite of me to falseend mouseUp</script>
  197.     </part>
  198.     <part>
  199.         <id>11</id>
  200.         <type>button</type>
  201.         <visible> <true /> </visible>
  202.         <reserved5> 0 </reserved5>
  203.         <reserved4> 0 </reserved4>
  204.         <reserved3> 0 </reserved3>
  205.         <reserved2> 0 </reserved2>
  206.         <reserved1> 0 </reserved1>
  207.         <enabled> <true /> </enabled>
  208.         <rect>
  209.             <left>452</left>
  210.             <top>314</top>
  211.             <right>478</right>
  212.             <bottom>341</bottom>
  213.         </rect>
  214.         <style>shadow</style>
  215.         <showName> <false /> </showName>
  216.         <highlight> <false /> </highlight>
  217.         <autoHighlight> <true /> </autoHighlight>
  218.         <sharedHighlight> <true /> </sharedHighlight>
  219.         <family>0</family>
  220.         <titleWidth>0</titleWidth>
  221.         <icon>1013</icon>
  222.         <textAlign>center</textAlign>
  223.         <font>Chicago</font>
  224.         <textSize>12</textSize>
  225.         <textStyle>plain</textStyle>
  226.         <name>Next</name>
  227.         <script>on mouseDownset the hilite of me to truemousestilldownend mouseDownon mouseStilldownvisual scroll leftgo next cd of this bgend mouseStillDownon mouseUpset the hilite of me to falseend mouseUp</script>
  228.     </part>
  229.     <part>
  230.         <id>13</id>
  231.         <type>button</type>
  232.         <visible> <true /> </visible>
  233.         <reserved5> 0 </reserved5>
  234.         <reserved4> 0 </reserved4>
  235.         <reserved3> 0 </reserved3>
  236.         <reserved2> 0 </reserved2>
  237.         <reserved1> 0 </reserved1>
  238.         <enabled> <true /> </enabled>
  239.         <rect>
  240.             <left>477</left>
  241.             <top>314</top>
  242.             <right>507</right>
  243.             <bottom>341</bottom>
  244.         </rect>
  245.         <style>shadow</style>
  246.         <showName> <false /> </showName>
  247.         <highlight> <false /> </highlight>
  248.         <autoHighlight> <true /> </autoHighlight>
  249.         <sharedHighlight> <true /> </sharedHighlight>
  250.         <family>0</family>
  251.         <titleWidth>0</titleWidth>
  252.         <icon>26865</icon>
  253.         <textAlign>center</textAlign>
  254.         <font>Chicago</font>
  255.         <textSize>12</textSize>
  256.         <textStyle>plain</textStyle>
  257.         <name>last</name>
  258.         <script>on mouseUpvisual scroll leftgo last card of this bgend mouseUp</script>
  259.     </part>
  260.     <part>
  261.         <id>16</id>
  262.         <type>field</type>
  263.         <visible> <true /> </visible>
  264.         <dontWrap> <false /> </dontWrap>
  265.         <dontSearch> <false /> </dontSearch>
  266.         <sharedText> <false /> </sharedText>
  267.         <fixedLineHeight> <true /> </fixedLineHeight>
  268.         <autoTab> <false /> </autoTab>
  269.         <lockText> <true /> </lockText>
  270.         <rect>
  271.             <left>406</left>
  272.             <top>0</top>
  273.             <right>508</right>
  274.             <bottom>20</bottom>
  275.         </rect>
  276.         <style>opaque</style>
  277.         <autoSelect> <false /> </autoSelect>
  278.         <showLines> <false /> </showLines>
  279.         <wideMargins> <false /> </wideMargins>
  280.         <multipleLines> <false /> </multipleLines>
  281.         <reservedFamily> 0 </reservedFamily>
  282.         <titleWidth>0</titleWidth>
  283.         <icon>0</icon>
  284.         <textAlign>right</textAlign>
  285.         <font>Chicago</font>
  286.         <textSize>12</textSize>
  287.         <textStyle>plain</textStyle>
  288.         <textHeight>16</textHeight>
  289.         <name>Page</name>
  290.         <script></script>
  291.     </part>
  292.     <part>
  293.         <id>17</id>
  294.         <type>field</type>
  295.         <visible> <true /> </visible>
  296.         <dontWrap> <false /> </dontWrap>
  297.         <dontSearch> <false /> </dontSearch>
  298.         <sharedText> <false /> </sharedText>
  299.         <fixedLineHeight> <true /> </fixedLineHeight>
  300.         <autoTab> <false /> </autoTab>
  301.         <lockText> <true /> </lockText>
  302.         <rect>
  303.             <left>5</left>
  304.             <top>0</top>
  305.             <right>406</right>
  306.             <bottom>20</bottom>
  307.         </rect>
  308.         <style>opaque</style>
  309.         <autoSelect> <false /> </autoSelect>
  310.         <showLines> <false /> </showLines>
  311.         <wideMargins> <false /> </wideMargins>
  312.         <multipleLines> <false /> </multipleLines>
  313.         <reservedFamily> 0 </reservedFamily>
  314.         <titleWidth>0</titleWidth>
  315.         <icon>0</icon>
  316.         <textAlign>left</textAlign>
  317.         <font>Chicago</font>
  318.         <textSize>12</textSize>
  319.         <textStyle>plain</textStyle>
  320.         <textHeight>16</textHeight>
  321.         <name>title/quote</name>
  322.         <script></script>
  323.     </part>
  324.     <part>
  325.         <id>18</id>
  326.         <type>button</type>
  327.         <visible> <false /> </visible>
  328.         <reserved5> 0 </reserved5>
  329.         <reserved4> 0 </reserved4>
  330.         <reserved3> 0 </reserved3>
  331.         <reserved2> 0 </reserved2>
  332.         <reserved1> 0 </reserved1>
  333.         <enabled> <true /> </enabled>
  334.         <rect>
  335.             <left>377</left>
  336.             <top>314</top>
  337.             <right>400</right>
  338.             <bottom>341</bottom>
  339.         </rect>
  340.         <style>shadow</style>
  341.         <showName> <false /> </showName>
  342.         <highlight> <false /> </highlight>
  343.         <autoHighlight> <false /> </autoHighlight>
  344.         <sharedHighlight> <true /> </sharedHighlight>
  345.         <family>0</family>
  346.         <titleWidth>0</titleWidth>
  347.         <icon>6122</icon>
  348.         <textAlign>center</textAlign>
  349.         <font>Chicago</font>
  350.         <textSize>12</textSize>
  351.         <textStyle>plain</textStyle>
  352.         <name>unlock text</name>
  353.         <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for bkgnd button "unlock text". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  mouseUpFUNCTIONS:GLOBALS:Size: 242 chars.      9:23 AM, Tuesday, July 18, 1989‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Parts ¬© Copyright 1989 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûon mouseUpif the visible of fld "notebook" then exit mouseUpset lockText of fld "text" to not lockText of fld "text"play "click"if lockText of fld "text" is true then set icon of me to 6122elseset icon of me to 6121select before char 1 of fld "text"end ifend mouseUp</script>
  354.     </part>
  355.     <part>
  356.         <id>19</id>
  357.         <type>button</type>
  358.         <visible> <true /> </visible>
  359.         <reserved5> 0 </reserved5>
  360.         <reserved4> 0 </reserved4>
  361.         <reserved3> 0 </reserved3>
  362.         <reserved2> 0 </reserved2>
  363.         <reserved1> 0 </reserved1>
  364.         <enabled> <true /> </enabled>
  365.         <rect>
  366.             <left>91</left>
  367.             <top>314</top>
  368.             <right>132</right>
  369.             <bottom>341</bottom>
  370.         </rect>
  371.         <style>shadow</style>
  372.         <showName> <true /> </showName>
  373.         <highlight> <false /> </highlight>
  374.         <autoHighlight> <false /> </autoHighlight>
  375.         <sharedHighlight> <true /> </sharedHighlight>
  376.         <family>0</family>
  377.         <titleWidth>0</titleWidth>
  378.         <icon>0</icon>
  379.         <textAlign>center</textAlign>
  380.         <font>Chicago</font>
  381.         <textSize>12</textSize>
  382.         <textStyle>plain</textStyle>
  383.         <name>Find</name>
  384.         <script>on mouseUpglobal whatToFindask "Find what..." with whatToFindif it is not empty thenput it into whatToFindlock screenpush cardtype "F" with commandKey, shiftKeytype whatTofind & returnend ifend mouseUp</script>
  385.     </part>
  386.     <part>
  387.         <id>21</id>
  388.         <type>button</type>
  389.         <visible> <true /> </visible>
  390.         <reserved5> 0 </reserved5>
  391.         <reserved4> 0 </reserved4>
  392.         <reserved3> 0 </reserved3>
  393.         <reserved2> 0 </reserved2>
  394.         <reserved1> 0 </reserved1>
  395.         <enabled> <true /> </enabled>
  396.         <rect>
  397.             <left>131</left>
  398.             <top>314</top>
  399.             <right>207</right>
  400.             <bottom>341</bottom>
  401.         </rect>
  402.         <style>shadow</style>
  403.         <showName> <true /> </showName>
  404.         <highlight> <false /> </highlight>
  405.         <autoHighlight> <false /> </autoHighlight>
  406.         <sharedHighlight> <true /> </sharedHighlight>
  407.         <family>0</family>
  408.         <titleWidth>0</titleWidth>
  409.         <icon>0</icon>
  410.         <textAlign>center</textAlign>
  411.         <font>Chicago</font>
  412.         <textSize>12</textSize>
  413.         <textStyle>plain</textStyle>
  414.         <name>Notebook</name>
  415.         <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for bkgnd button "Notebook". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  mouseUpFUNCTIONS:GLOBALS:Size: 296 chars.      12:13 PM, Friday, July 20, 1990‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Parts ¬© Copyright 1990 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûon mouseUpif not the visible of fld "notebook" thenlock screenset usermodify to trueset cantModify of this stack to falsegray bg,"notebook"gray icon,"bg btn home","bg btn help","bg btn tellAbout"popUpField trueunlock screen with visual zoom openselect before first char of fld "notebook"end ifend mouseUp</script>
  416.     </part>
  417.     <part>
  418.         <id>34</id>
  419.         <type>button</type>
  420.         <visible> <false /> </visible>
  421.         <reserved5> 0 </reserved5>
  422.         <reserved4> 0 </reserved4>
  423.         <reserved3> 0 </reserved3>
  424.         <reserved2> 0 </reserved2>
  425.         <reserved1> 0 </reserved1>
  426.         <enabled> <true /> </enabled>
  427.         <rect>
  428.             <left>73</left>
  429.             <top>263</top>
  430.             <right>429</right>
  431.             <bottom>280</bottom>
  432.         </rect>
  433.         <style>rectangle</style>
  434.         <showName> <true /> </showName>
  435.         <highlight> <false /> </highlight>
  436.         <autoHighlight> <true /> </autoHighlight>
  437.         <sharedHighlight> <true /> </sharedHighlight>
  438.         <family>0</family>
  439.         <titleWidth>0</titleWidth>
  440.         <icon>0</icon>
  441.         <textAlign>center</textAlign>
  442.         <font>Geneva</font>
  443.         <textSize>12</textSize>
  444.         <textStyle>plain</textStyle>
  445.         <name>Print/Save Notes</name>
  446.         <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for bkgnd button "Print/Save Notes". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  mouseUp,printEm,SaveEm,writeDataFUNCTIONS:GLOBALS:Size: 1760 chars.      12:13 PM, Friday, July 20, 1990‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Parts ¬© Copyright 1990 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûon mouseUpanswer "Print or Save your notes?" with "Cancel" or "Print" or "Save"if it is "cancel" then exit mouseUpput it into theActionanswer theAction && "all notebook fields or just this one?" with "Cancel" or "All" or "This One"if it is "cancel" then exit mouseUppush cdlock screenif theAction is "Save" then saveEm itelse if theAction is "Print" thenif it is "this one" then mark this cdelse mark all cdsopen report printing with template "Notebook"print marked cardsunmark all cardsclose printingend ifunlock screenselect before char 1 of fld "notebook"end mouseUpon SaveEm howmanyanswer "Append to an existing file?" with "Yes" or "No"if it is "yes" thenanswer file "Please select the file for appending‚Ķ" of type "TEXT"if it is empty then exit to hypercardelse put it into thefileopen file thefilerepeat while it is not emptyset cursor to busyread from file thefile for 16000end repeatwriteData theFileelseask file "Please enter the file name‚Ķ" with "My Notes"if it is empty then exit to hypercardelse put it into theFileopen file thefilewriteData theFile,howManyend ifclose file thefileend saveEmon writeData theFile, howManyif howmany is "this one" then put 1 into howmanyelse put the number of cds of this bg into howmanyrepeat with count = 1 to howmanyset cursor to busywrite "***************" & return to file thefilewrite fld "notebook" & return & return to file theFilego next card of this bgend repeatpop cdend writeData</script>
  447.     </part>
  448.     <part>
  449.         <id>30</id>
  450.         <type>field</type>
  451.         <visible> <false /> </visible>
  452.         <dontWrap> <false /> </dontWrap>
  453.         <dontSearch> <false /> </dontSearch>
  454.         <sharedText> <false /> </sharedText>
  455.         <fixedLineHeight> <true /> </fixedLineHeight>
  456.         <autoTab> <false /> </autoTab>
  457.         <lockText> <false /> </lockText>
  458.         <rect>
  459.             <left>73</left>
  460.             <top>135</top>
  461.             <right>445</right>
  462.             <bottom>264</bottom>
  463.         </rect>
  464.         <style>scrolling</style>
  465.         <autoSelect> <false /> </autoSelect>
  466.         <showLines> <false /> </showLines>
  467.         <wideMargins> <true /> </wideMargins>
  468.         <multipleLines> <false /> </multipleLines>
  469.         <reservedFamily> 0 </reservedFamily>
  470.         <titleWidth>0</titleWidth>
  471.         <icon>0</icon>
  472.         <textAlign>left</textAlign>
  473.         <font>Geneva</font>
  474.         <textSize>12</textSize>
  475.         <textStyle>plain</textStyle>
  476.         <textHeight>16</textHeight>
  477.         <name>NoteBook</name>
  478.         <script>on mouseUpif the commandKey is not "down" then exit mouseUplock screenpopupField falsego nextfind msgif the foundchunk contains "bkgnd field 3" then popupfield truehide msgend mouseUp</script>
  479.     </part>
  480.     <part>
  481.         <id>33</id>
  482.         <type>button</type>
  483.         <visible> <false /> </visible>
  484.         <reserved5> 0 </reserved5>
  485.         <reserved4> 0 </reserved4>
  486.         <reserved3> 0 </reserved3>
  487.         <reserved2> 0 </reserved2>
  488.         <reserved1> 0 </reserved1>
  489.         <enabled> <true /> </enabled>
  490.         <rect>
  491.             <left>428</left>
  492.             <top>263</top>
  493.             <right>445</right>
  494.             <bottom>280</bottom>
  495.         </rect>
  496.         <style>transparent</style>
  497.         <showName> <false /> </showName>
  498.         <highlight> <false /> </highlight>
  499.         <autoHighlight> <false /> </autoHighlight>
  500.         <sharedHighlight> <true /> </sharedHighlight>
  501.         <family>0</family>
  502.         <titleWidth>0</titleWidth>
  503.         <icon>4383</icon>
  504.         <textAlign>center</textAlign>
  505.         <font>Chicago</font>
  506.         <textSize>12</textSize>
  507.         <textStyle>plain</textStyle>
  508.         <name>Grow Icon</name>
  509.         <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for bkgnd button "Grow Icon". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  mouseDown,mouseUpFUNCTIONS:GLOBALS:   authoring,ourTopLeft,myOrigLocSize: 2000 chars.      11:30 AM, Friday, July 20, 1990‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Parts ¬© Copyright 1990 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûon mouseDownglobal authoring, ourTopLeft,myOrigLocput topLeft of bg btn "student notebook" into ourTopLeftput the loc of me into myOrigLocset lockmessages to trueif not authoring then set the userlevel to 3choose rectangle toolput the mouseLoc into oldLocdrag from topLeft of bg btn "student notebook" to botRight of merepeat while the mouse is "down"set cursor to arrowif the mouseLoc is not oldLoc thenput (item 1 of the mouseLoc - item 1 of oldLoc) into horDiffput (item 2 of the mouseLoc - item 2 of oldLoc) into vertDiffdomenu "clear picture"drag from topLeft of bg btn "student notebook" to (item 1 of the mouseLoc + horDiff),(item 2 of the mouseLoc + vertDiff)put the mouseLoc into oldLocend ifend repeatend mouseDownon mouseUpglobal authoring, ourTopLeft, myOrigLocget the mouseLocset cursor to watchdoMenu "clear picture"lock screenset the rect of me to item 1 of it -17,item 2 of it -17,item 1 of it,item 2 of itget the rect of meif (item 1 of it - item 1 of ourTopLeft < 155)¬¨    --width delimiteror (item 2 of it - item 2 of ourTopLeft < 75) then --height delimiterbeep 2set loc of me to myOrigLocelseset rect of fld "notebook" to (item 1 of the rect of fld "notebook"),item 2 of the rect of fld "notebook",item 3 of it,item 2 of it+1set rect of bg btn "print/save notes" to item 1 of the rect of bg btn "print/save notes",item 2 of it,item 3 of it -16,item 4 of itset rect of bg btn "student notebook" to item 1 of the rect of bg btn "student notebook",item 2 of the rect of bg btn "student notebook",item 3 of it,item 4 of the rect of bg btn "student notebook"end ifunlock screenchoose browse toolset lockmessages to falseif not authoring then set the userlevel to 2select before char 1 of fld "notebook"end mouseUp</script>
  510.     </part>
  511.     <part>
  512.         <id>31</id>
  513.         <type>button</type>
  514.         <visible> <false /> </visible>
  515.         <reserved5> 0 </reserved5>
  516.         <reserved4> 0 </reserved4>
  517.         <reserved3> 0 </reserved3>
  518.         <reserved2> 0 </reserved2>
  519.         <reserved1> 0 </reserved1>
  520.         <enabled> <true /> </enabled>
  521.         <rect>
  522.             <left>73</left>
  523.             <top>115</top>
  524.             <right>445</right>
  525.             <bottom>135</bottom>
  526.         </rect>
  527.         <style>rectangle</style>
  528.         <showName> <true /> </showName>
  529.         <highlight> <false /> </highlight>
  530.         <autoHighlight> <false /> </autoHighlight>
  531.         <sharedHighlight> <true /> </sharedHighlight>
  532.         <family>0</family>
  533.         <titleWidth>0</titleWidth>
  534.         <icon>0</icon>
  535.         <textAlign>center</textAlign>
  536.         <font>Chicago</font>
  537.         <textSize>12</textSize>
  538.         <textStyle>bold</textStyle>
  539.         <name>Student Notebook</name>
  540.         <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for bkgnd button "Student Notebook". ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  mouseDown,mouseUpFUNCTIONS:GLOBALS:Size: 1346 chars.      11:30 AM, Friday, July 20, 1990‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Parts ¬© Copyright 1990 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûon mouseDownset lockmessages to trueput the mouseLoc into newLocrepeat while the mouse is "down"lock screenput newLoc into oldLocput the mouseLoc into newLocif newLoc is not oldLoc thenput (item 1 of newLoc - item 1 of oldLoc) into horDiffput (item 2 of newLoc - item 2 of oldLoc) into vertDiffset loc of me to (item 1 of the loc of me + horDiff),(item 2 of ¬¨the loc of me + vertDiff)set loc of bg btn "close" to (item 1 of the loc of ¬¨bg btn "close" + horDiff),¬¨(item 2 of the loc of bg btn "close" + vertDiff)set loc of bg btn "print/save notes" to (item 1 of the loc of ¬¨bg btn "print/save notes" + horDiff),¬¨(item 2 of the loc of bg btn "print/save notes" + vertDiff)set loc of bg btn "grow icon" to (item 1 of the loc of ¬¨bg btn "grow icon" + horDiff),¬¨(item 2 of the loc of bg btn "grow icon" + vertDiff)set loc of bg fld "Notebook" to (item 1 of the loc of bg fld "notebook" + horDiff), (item 2 of the loc of bg fld "notebook" + vertDiff)end ifunlock screenend repeatend mouseDownon mouseUpselect before first char of fld "notebook"end mouseUp</script>
  541.     </part>
  542.     <part>
  543.         <id>32</id>
  544.         <type>button</type>
  545.         <visible> <false /> </visible>
  546.         <reserved5> 0 </reserved5>
  547.         <reserved4> 0 </reserved4>
  548.         <reserved3> 0 </reserved3>
  549.         <reserved2> 0 </reserved2>
  550.         <reserved1> 0 </reserved1>
  551.         <enabled> <true /> </enabled>
  552.         <rect>
  553.             <left>76</left>
  554.             <top>119</top>
  555.             <right>94</right>
  556.             <bottom>133</bottom>
  557.         </rect>
  558.         <style>checkbox</style>
  559.         <showName> <false /> </showName>
  560.         <highlight> <false /> </highlight>
  561.         <autoHighlight> <false /> </autoHighlight>
  562.         <sharedHighlight> <true /> </sharedHighlight>
  563.         <family>0</family>
  564.         <titleWidth>0</titleWidth>
  565.         <icon>0</icon>
  566.         <textAlign>center</textAlign>
  567.         <font>Chicago</font>
  568.         <textSize>12</textSize>
  569.         <textStyle>plain</textStyle>
  570.         <name>close</name>
  571.         <script>on mouseUpset the hilite of me to falselock screenset usermodify to trueset cantmodify of this stack to falsehot bg,"notebook"hot icon,"bg btn home","bg btn help","bg btn tellabout"popUpField falseunlock screen with visual zoom closeend mouseUpon mouseDownset the hilite of me to trueend mouseDownon mouseLeaveset the hilite of me to falseend mouseLeave</script>
  572.     </part>
  573.     <name>main text</name>
  574.     <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for this background. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àûHANDLERS:  openBackground,closeBackground,openCard,popUpField,extractVocab,--         extractSentences,writeItFUNCTIONS:GLOBALS:   authoring,title,punctuations,startWord,abbreviationsSize: 5749 chars.      10:02 AM, Wednesday, May 22, 1991‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû ¬© 1991 David Herren ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû-----------------------General Background Handlers--------------------------on openBackgroundglobal authoringif authoring thenshow bg btn "unlock text"instructorMenu--enable our menus for this backgroundrepeat with count = 1 to 2enable menuitem count of menu "gr instructor"end repeatend ifend openbackgroundon closeBackgroundglobal authoring--make sure the text fld is locked so it isn't changed by accidentset locktext of fld "text" to truehide bg btn "unlock text"set icon of bg btn "unlock text" to 6122--disable our menus for this backgroundif authoring then repeat with count = 2 down to 1disable menuitem count of menu "GR Instructor"end repeatpass closeBackgroundend closeBackgroundon openCardglobal titleput title into fld "title/quote"put "Card" && ((the number of this card) - ¬¨(the number of cds of bg "title")) into fld "page"end openCard------------------------------Student Handlers-------------------------------for the student notebookon popUpField booleanglobal authoringset cursor to watchset usermodify to booleanif not authoring and boolean then set cantmodify of this stack to not booleanset the visible of bg btn "print/save notes" to booleanset the visible of bg btn "grow icon" to booleanset the visible of bg btn "close" to booleanset the visible of fld "notebook" to booleanset the visible of bg btn "student notebook" to booleanset the hilite of bg btn "student notebook" to booleanif not boolean then set scroll of fld "notebook" to 0if not authoring and not booleanthen set cantmodify of this stack to not booleanend popUpField------------------------Instructor Handlers----------------------------------on extractVocabanswer "Replace any existing vocabulary?" with "Cancel" or "No" or "Yes"if it is "cancel" then exit to hypercardif it is "Yes" then put "true" into replacingelse put "false" into replacingpush cdput "Now extracting the Vocabulary...this will take a while."set lockmessages to truelock screengo first card of this bgrepeat for the number of cards of bg "main text"set cursor to busyput fld "text" & " " after theTextgo nextend repeat--clean up the punctuationglobal punctuationsput stripChars(punctuations,theText) into theText--create the vocabulary listput wordList(theText) into theTextsort lines of theText internationalgo to last cdif replacing then put theText into cd fld "glossary"else put return & theText after cd fld "glossary"put empty into msghide msgset lockmessages to falsesend opencard to this cdunlock screenend extractVocab-- --this creates a list of the unique words in theText in the order of-- --appearancefunction wordList theTextput empty into theListput empty into theINTListrepeat with count = 1 to the number of words of theTextset cursor to busyrepeat with cnt=1 to the number of chars of word count of theTextput chartonum(char cnt of word count of theText) & " " after theWordend repeatif theWord is not in theINTList then put theWord & return after theINTListput empty into theWordend repeatrepeat with count = 1 to the number of lines of theINTListset cursor to busyrepeat with cnt=1 to the number of words of line count of theINTListput numtochar(word cnt of line count of theINTList) after theListend repeatput return after theListend repeatreturn theListend wordListon extractSentencesglobal startWord, abbreviations--check for more abbreviationslock screenanswer "Known abbreviations ending in period: " & return¬¨& abbreviations & return & "Would you like to add any?" with "Cancel" or "Yes" or "No"if it is "Cancel" then exit to HyperCardelse if it is "Yes" thenrepeatask "Add..."if it is not empty thenif last char of it is not "." then put "." after itput " " & it after abbreviationselse exit repeatend repeatput abbreviations into cd fld "abbreviations" of first cardend if--check to see if they want existing sentence cards deletedanswer "Do you want to delete any existing sentence cards?" with "Cancel" or "No" or "Yes"if it is "Cancel" then exit extractSentenceselseput "Deleting existing sentence cards..."lock screenpush cdgo to first cd of bg "sentences"repeat for the number of cds of this bg - 1set cursor to busydoMenu "delete card"end repeatput empty into fld "sentence"put empty into fld "hints"put empty into fld "additional help"pop cdend if--start the extraction of the sentencesput "Now extracting the sentences...this will take a while."set lockmessages to truelock screengo first card of this bgrepeat for the number of cards of bg "main text"put 1 into startWordput fld "text" into theTextrepeat with count = startWord to the number of words of theTextset cursor to busyget word startWord to count of theTextif last char of it is "?"¬¨or last char of it is "!" then writeIt count, itelse if last char of it is "." thenif last word of it is in abbreviations then next repeatif char (the number of chars of last word of it - 1)¬¨of last word of it ¬¨is in "0 1 2 3 4 5 6 7 8 9" then next repeatelse writeIt count, itend ifend repeatgo next card of this bgif the short name of this card is "First Text Card" then exit repeatend repeatset lockmessages to falseunlock screenput emptyhide msg--all doneanswer "All sentences are extracted to their own cards."¬¨&& "You may want to check them individually to make any"¬¨&& "necessary adjustments." with "Check" or "OK"if it is "Check" thenpush cdgo to first cd of bg "sentences"end ifend extractSentences--takes a sentence as determined by the extractSentences and writes it to its own cardon writeIt count, theTextglobal startWord, titleput count + 1 into startWordpush cardgo to last card of bg "sentences"if fld "sentence" is not emptythen send "doMenu" && quote & "New Card" & quote to this cardput theText into fld "sentence"put title into fld "title/quote"put "Sentence" && ((the number of this card) - ¬¨(the number of cds of bg "main text") - ¬¨(the number of cds of bg "title")) into fld "page"pop cdend writeIt</script>
  575. </background>
  576.